<%@ tag language="java" pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<%@ attribute name="containerId" type="java.lang.String" required="true" description="编辑器id"%>
<%@ attribute name="fieldName" type="java.lang.String" required="true" description="绑定的文本域"%>
<%@ attribute name="content" type="java.lang.String" required="true" description="绑定的文本"%>
<script type="text/javascript">
	include('ueditor_config','${ctxStatic}/ueditor/',['ueditor.config.js']);
	include('ueditor_all','${ctxStatic}/ueditor/',['ueditor.all.js']);
</script>
<script type="text/javascript">
$(document).ready(function () {
	var ${containerId}ue =  UE.getEditor('${containerId}',{
		initialFrameWidth:'99.7%',
		initialFrameHeight:500,
		autoHeightEnabled:true
	});
});
</script>
<!-- 加载编辑器的容器 -->
<script id="${containerId}" name="${fieldName}" type="text/plain">
${content}
</script>
